package com.foreknow.dao;

import com.foreknow.entity.ConstantItem;
import com.foreknow.entity.ConstantType;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ConstantItemMapper {
    int deleteByPrimaryKey(Integer id);

    int delete(Integer id);

    int deleteByTypeId(Integer id);

    int insert(ConstantItem record);

    int insertSelective(ConstantItem record);

    ConstantItem selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ConstantItem record);

    int updateByPrimaryKey(ConstantItem record);

    List<ConstantItem> getConstantItemList(ConstantItem record);


    @Select("select * from constantitem where constanttypeid = #{constanttypeid}")
    List<ConstantItem> selectById(Integer id);
}